package com.example.demo.job;



import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import java.time.LocalDateTime;

/**
 * @author keyer
 * @Description : 测试定时任务
 * Created by cyd on 2021-03-19 11:15:44
 */
public class MyJob implements Job {

    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        // 获取bean的时候 通过一个实现applicationContextAwa接口的类，通过applicationContext.getBean(beanName)的方法获取;
//        System.out.println("执行了myjob01-" + " 时间:" + LocalDateTime.now().withNano(0));
//        TestUtil.test();
    }
}
